
package com.cctv.ppm.schema.ppm_commondatatypes._0;

import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * 节目键信息类型
 * 
 * <p>ProgramKeyType complex type的 Java 类。
 * 
 * <p>以下模式片段指定包含在此类中的预期内容。
 * 
 * <pre>
 * &lt;complexType name="ProgramKeyType"&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *       &lt;sequence&gt;
 *         &lt;element name="ProgramKey" maxOccurs="unbounded" minOccurs="0"&gt;
 *           &lt;complexType&gt;
 *             &lt;complexContent&gt;
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *                 &lt;sequence&gt;
 *                   &lt;element name="KeyItem" maxOccurs="unbounded"&gt;
 *                     &lt;complexType&gt;
 *                       &lt;complexContent&gt;
 *                         &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *                           &lt;sequence&gt;
 *                             &lt;element name="KeyIndex" type="{http://www.w3.org/2001/XMLSchema}integer"/&gt;
 *                             &lt;element name="KeyStatus" type="{http://www.w3.org/2001/XMLSchema}integer"/&gt;
 *                           &lt;/sequence&gt;
 *                         &lt;/restriction&gt;
 *                       &lt;/complexContent&gt;
 *                     &lt;/complexType&gt;
 *                   &lt;/element&gt;
 *                 &lt;/sequence&gt;
 *               &lt;/restriction&gt;
 *             &lt;/complexContent&gt;
 *           &lt;/complexType&gt;
 *         &lt;/element&gt;
 *       &lt;/sequence&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ProgramKeyType", propOrder = {
    "programKey"
})
public class ProgramKeyType {

    @XmlElement(name = "ProgramKey", nillable = true)
    protected List<ProgramKeyType.ProgramKey> programKey;

    /**
     * Gets the value of the programKey property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the programKey property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getProgramKey().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link ProgramKeyType.ProgramKey }
     * 
     * 
     */
    public List<ProgramKeyType.ProgramKey> getProgramKey() {
        if (programKey == null) {
            programKey = new ArrayList<ProgramKeyType.ProgramKey>();
        }
        return this.programKey;
    }


    /**
     * <p>anonymous complex type的 Java 类。
     * 
     * <p>以下模式片段指定包含在此类中的预期内容。
     * 
     * <pre>
     * &lt;complexType&gt;
     *   &lt;complexContent&gt;
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
     *       &lt;sequence&gt;
     *         &lt;element name="KeyItem" maxOccurs="unbounded"&gt;
     *           &lt;complexType&gt;
     *             &lt;complexContent&gt;
     *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
     *                 &lt;sequence&gt;
     *                   &lt;element name="KeyIndex" type="{http://www.w3.org/2001/XMLSchema}integer"/&gt;
     *                   &lt;element name="KeyStatus" type="{http://www.w3.org/2001/XMLSchema}integer"/&gt;
     *                 &lt;/sequence&gt;
     *               &lt;/restriction&gt;
     *             &lt;/complexContent&gt;
     *           &lt;/complexType&gt;
     *         &lt;/element&gt;
     *       &lt;/sequence&gt;
     *     &lt;/restriction&gt;
     *   &lt;/complexContent&gt;
     * &lt;/complexType&gt;
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "keyItem"
    })
    public static class ProgramKey {

        @XmlElement(name = "KeyItem", required = true)
        protected List<ProgramKeyType.ProgramKey.KeyItem> keyItem;

        /**
         * Gets the value of the keyItem property.
         * 
         * <p>
         * This accessor method returns a reference to the live list,
         * not a snapshot. Therefore any modification you make to the
         * returned list will be present inside the JAXB object.
         * This is why there is not a <CODE>set</CODE> method for the keyItem property.
         * 
         * <p>
         * For example, to add a new item, do as follows:
         * <pre>
         *    getKeyItem().add(newItem);
         * </pre>
         * 
         * 
         * <p>
         * Objects of the following type(s) are allowed in the list
         * {@link ProgramKeyType.ProgramKey.KeyItem }
         * 
         * 
         */
        public List<ProgramKeyType.ProgramKey.KeyItem> getKeyItem() {
            if (keyItem == null) {
                keyItem = new ArrayList<ProgramKeyType.ProgramKey.KeyItem>();
            }
            return this.keyItem;
        }


        /**
         * <p>anonymous complex type的 Java 类。
         * 
         * <p>以下模式片段指定包含在此类中的预期内容。
         * 
         * <pre>
         * &lt;complexType&gt;
         *   &lt;complexContent&gt;
         *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
         *       &lt;sequence&gt;
         *         &lt;element name="KeyIndex" type="{http://www.w3.org/2001/XMLSchema}integer"/&gt;
         *         &lt;element name="KeyStatus" type="{http://www.w3.org/2001/XMLSchema}integer"/&gt;
         *       &lt;/sequence&gt;
         *     &lt;/restriction&gt;
         *   &lt;/complexContent&gt;
         * &lt;/complexType&gt;
         * </pre>
         * 
         * 
         */
        @XmlAccessorType(XmlAccessType.FIELD)
        @XmlType(name = "", propOrder = {
            "keyIndex",
            "keyStatus"
        })
        public static class KeyItem {

            @XmlElement(name = "KeyIndex", required = true)
            protected BigInteger keyIndex;
            @XmlElement(name = "KeyStatus", required = true)
            protected BigInteger keyStatus;

            /**
             * 获取keyIndex属性的值。
             * 
             * @return
             *     possible object is
             *     {@link BigInteger }
             *     
             */
            public BigInteger getKeyIndex() {
                return keyIndex;
            }

            /**
             * 设置keyIndex属性的值。
             * 
             * @param value
             *     allowed object is
             *     {@link BigInteger }
             *     
             */
            public void setKeyIndex(BigInteger value) {
                this.keyIndex = value;
            }

            /**
             * 获取keyStatus属性的值。
             * 
             * @return
             *     possible object is
             *     {@link BigInteger }
             *     
             */
            public BigInteger getKeyStatus() {
                return keyStatus;
            }

            /**
             * 设置keyStatus属性的值。
             * 
             * @param value
             *     allowed object is
             *     {@link BigInteger }
             *     
             */
            public void setKeyStatus(BigInteger value) {
                this.keyStatus = value;
            }

        }

    }

}
